home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttddddoooommmmaaaaiiiinnnnnnnnaaaammmmeeee((((2222)))) ggggeeeettttddddoooommmmaaaaiiiinnnnnnnnaaaammmmeeee((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- getdomainname, setdomainname - get/set name of current NIS domain
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- iiiinnnntttt ggggeeeettttddddoooommmmaaaaiiiinnnnnnnnaaaammmmeeee((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, iiiinnnntttt nnnnaaaammmmeeeelllleeeennnn))));;;;
- iiiinnnntttt sssseeeettttddddoooommmmaaaaiiiinnnnnnnnaaaammmmeeee((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, iiiinnnntttt nnnnaaaammmmeeeelllleeeennnn))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _G_e_t_d_o_m_a_i_n_n_a_m_e returns the name of the NIS domain for the current host, as
- previously set by _s_e_t_d_o_m_a_i_n_n_a_m_e. The parameter _n_a_m_e_l_e_n specifies the
- size of the _n_a_m_e array. The returned name is null-terminated unless
- insufficient space is provided.
-
- _S_e_t_d_o_m_a_i_n_n_a_m_e sets the NIS domain of the host to be _n_a_m_e, which has
- length _n_a_m_e_l_e_n. This call is restricted to the superuser and is normally
- used only during system initialization.
-
- The purpose of NIS domains is to enable two distinct networks that may
- have hostnames in common to merge. Each network would be distinguished
- by having a different NIS domain name.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- If the call succeeds a value of 0 is returned. If the call fails, then a
- value of -1 is returned and an error code is placed in the global
- variable _e_r_r_n_o.
-
- EEEERRRRRRRROOOORRRRSSSS
- The following errors may be returned by these calls:
-
- [EFAULT] The _n_a_m_e parameter gave an invalid address.
-
- [EPERM] The caller was not the superuser. This error only applies
- to _s_e_t_d_o_m_a_i_n_n_a_m_e.
-
- BBBBUUUUGGGGSSSS
- NIS domain names are limited to 64 characters.
-
- NNNNOOOOTTTTEEEE
- This call is provided for backward compatibility with pre-IRIX 5.0
- applications.
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-